<?php


   global $sid;
   global $shopResult;
   global $shopDAO;
   
   
   $shopCategoryDAO = GetShopCategoryDAO();
   $cityDAO = GetCityDAO();
   $userDAO = GetUserDAO();
   ///$productDAO = GetProductDAO();
   //$listDAO = GetListDAO();
   
   
   $platid = $shopResult['plat_id'];
   $scid = $shopResult['cate_id_list'];
   $locationID = $shopResult['location'];
   $createUserID = $shopResult['create_user_id'];
   $modifyUserID = $shopResult['modify_user_id'];
   $firstUserID = $shopResult['first_user_id'];
   $shopName = $shopResult['shop_name'];
   $shopUrl = $shopResult['shop_url'];
   $logoUrl = $shopResult['logo_url'];
   $nick = $shopResult['nick'];
   $created = substr( $shopResult['created'], 0, 10 );
   $description = $shopResult['description'];
   $score = $shopResult['score'];
   $reality = $shopResult['reality'];
   $service = $shopResult['service'];
   $velocity = $shopResult['velocity'];
   $rate = $shopResult['rate'];
   $payMethodIDList = $shopResult['paymethod'];
   $featureIDList = $shopResult['feature'];
   $tag =  $shopResult['tag'];
   $totalReview = $shopResult['review_count'];
   $createTime = substr( $shopResult['create_time'], 0, 10 );
   $modifyTime = substr( $shopResult['modify_time'], 0, 10 );
   $firstTime = substr( $shopResult['first_time'], 0, 10 );
   $status = $shopResult['status'];

    /*转换platform, category, location*/
   $platform = $shopDAO->GetShopPlatform($platid);
   $category = $shopCategoryDAO->GetShopCategoryName($scid);
   $location = $cityDAO->GetCityNameSimple($locationID);
   
   /*获得feature, paymethod, tag*/
   $featureArr =  $shopDAO->GetShopFeatures($featureIDList);
   $payMethodArr =  $shopDAO->GetShopPayMethods($payMethodIDList);
   $tagArr = $shopDAO->GetShopTags($tag);
      

   /*获得推广url*/

	if($platid =='1'){//taobao
		
		$shopPlusResult=$shopDAO->GetShopInfoPlus('taobao',$sid);	   
	    $commissionURL = $shopPlusResult['click_url'];
	
	}else{
		$commissionURL = $shopUrl;
	}

   $breadcrumb = GetBreadcrumb();
   $breadcrumb->add( "首页", EDP_DOMAIN );
   $breadcrumb->add( $platform, edp_href_link(PAGENAME_PLATFORM,'platid='.$platid) );
   $breadcrumb->add( $shopName );
   
   
?>
